Unlike the Netscape DOM, DOM Level 1 has not been documented in hundreds of third-party books and web sites. Thus, this document will describe the DOM Level 1 properties and methods, and the values they return, in some detail.
DOM Level 1 introduces four constants that describe the types of objects that make up the document tree (called nodes). These constants, which usually show up as return values for the nodeType
property, are:
Node.DOCUMENT_NODE Node.ELEMENT_NODE Node.COMMENT_NODE Node.TEXT_NODE